# coding=utf-8
from neatHealthScripts.bedcore.module.config.client import Config


class ClientConfig(Config):

    def __init__(self):
        self.showHealth = True
        self.showHurt = True
        self.boardScale = 1.5
        self.maxDistance = 30

    @staticmethod
    def getKey():
        return 'neat_health_config'

    @staticmethod
    def isGlobal():
        return True

    def toSyncData(self):
        """
        :rtype: dict
        """
        return {
            'showHurt': self.showHurt,
            'maxDistance': self.maxDistance,
        }
